package com.yl.flink.redis;

import com.yl.constant.RedisCmd;

import java.io.Serializable;
import java.util.Objects;

public class RedisCmdDesc implements Serializable {

    private static final long serialVersionUID = 1L;
    private final RedisCmd redisCmd;

    public RedisCmdDesc(RedisCmd redisCmd) {
        Objects.requireNonNull(redisCmd, "Redis command type can not be null");
        this.redisCmd = redisCmd;

    }

    public RedisCmd getCommand() {
        return this.redisCmd;
    }

}
